<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/resource/css/admin/main.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/right.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
</head>
<body>
	<div class="position"><span>您的当前位置：</span>业务处理 > 表单处理 > ${form.name}</div>
	<form method="post" action="./">
		<div class="rightbody m">
			<div class="rightbodycontent">
			   	<table class="tools">
			       	<tr>
			            <td>
			        	        审核状态：
		        	        <select name="state" onchange="getform(this).submit()">
		        	            <option value="-1">--全部--</option>
		        	            <option value="0"<#if state == 0> selected</#if>>未处理</option>
		        	            <option value="1"<#if state == 1> selected</#if>>已处理</option>
		        	        </select>
		        	        &nbsp;
		                   	 关键字：<input type="text" name="keywords" value="${keywords!}" style="width:200px" />&nbsp;<a onclick="getform(this).submit()" class="linkbtn search">搜索</a>
		        	    </td>
		                <td align="right">
		                	<#list atisfactions as atisfaction>
		                		${atisfaction.name}：<span style="color:red">${atisfaction.formDatas?size}</span>&nbsp;
		                	</#list>
		                	&nbsp;&nbsp;
		                    <a onclick="submitselectdata('delete?formdataids','删除','callbackparams=${urlEncode(callbackparams)}')" class="linkbtn delete">删除所选数据</a>
		                </td>
			        </tr>
			    </table>
			    <table cellspacing="1" cellpadding="4" class="tablelist">
			        <tr>
			            <th><input type="checkbox" onclick="selectallcheckbox(this)" /></th>
			            <#list formfields as formfield>
			            	<th>${formfield.title}</th>
			            </#list>
		                <th>提交时间</th>
		                <th>IP地址</th>
		                <th>状态</th>
		                <th>处理人员</th>
		                <th>用户满意度</th>
		                <th>操作</th>
			        </tr>
			        <#list formdatas as formdata>
						<tr<#if formdata_index % 2 == 1> class="splittr"</#if>>
							<td align="center"><input type="checkbox" name="ids" value="${formdata.id}" /></td>
							<#list formfields as formfield>
				            	<#list formdata.formDataValues as value>
				            		<#if value.formField.id == formfield.id>
				            			<td align="center">${value.contents!?html}</th>
				            			<#break>
				            		</#if>
				            	</#list>
				            </#list>
			            	<td align="center">${formdata.subtime?string('yyyy-MM-dd HH:mm:ss')}</td>
			            	<td align="center">${formdata.ipaddress}</td>
			            	<td align="center">
			            		<#if !formdata.result??><span style="color:red">未处理</span>
		                        <#else><span style="color:green">已处理</span>
		                        </#if>
			            	</td>
			            	<td align="center">${formdata.disposeUser!}</td>
			            	<td align="center"><#if formdata.formDataAtisfaction??>${formdata.formDataAtisfaction.name}</#if></td>
							<td align="center">
								<a href="detail?formdataid=${formdata.id}&callbackparams=${urlEncode(callbackparams)}" class="linkbtn detail noborder">查看详细</a>
			                    <a href="delete?formdataids=${formdata.id}&callbackparams=${urlEncode(callbackparams)}" class="linkbtn delete noborder" onclick="return confirm('确定删除吗？')">删除</a>
						    </td>
						</tr>
			        </#list>
			    </table>
		    </div>
	    </div>
	    <div class="rightfoot">
			<div class="rightfootcontent">
				<input type="button" value="返 回" class="return" onclick="window.history.back()" />
			</div>
	    </div>
	    <input name="formid" value="${form.id}" />
	</form>
</body>
</html>